只需要一个小小的css文件,就可以让你的网站排版变得无可挑剔的干净
食用方法:
[pay]
点击 `</>` 复制  [size=18]↓[/size]  
```css
* {
overflow-wrap: break-word;
/*Note: In contrast to word-break, overflow-wrap (word-wrap is now an alias of overflow-wrap) will only create a break if an entire word cannot be placed on its own line without overflowing.
https://developer.mozilla.org/en-US/docs/Web/CSS/overflow-wrap
I think this is a proper solution of too long messages without any spaces which may overflow the paragraph, though i dont know how official hack.chat client does the same thing.*/
}
h1,
h2,
h3,
h4,
h5,
h6 {
margin: 3px;
margin-top: 0px;
}
html,
body {
margin: 0;
padding: 0;
height: 100vh;
overflow: hidden;
}
input[type=“checkbox”] {
margin: 0;
margin-right: 1em;
}
label {
vertical-align: 3px;
}
input,
textarea {
background: none;
border: none;
outline: none;
resize: none;
max-height: 400px;
}
h4 {
font-size: 12px;
margin: 1em 0;
font-weight: bold;
}
pre {
tab-size: 2;
white-space: pre-wrap;
word-wrap: break-word;
-o-tab-size: 4;
-moz-tab-size: 4;
tab-size: 4;
}
a {
color: inherit;
text-decoration: none;
cursor: pointer;
}
a:hover {
text-decoration: underline;
}
- {
display: none !important
}
ul,
ol {
margin-top: 0;
margin-bottom: 10px;
display: block;
list-style-type: disc;
margin-block-start: 1em;
margin-block-end: 1em;
margin-inline-start: 0px;
margin-inline-end: 0px;
padding-inline-start: 40px;
}
ul li {
list-style: inside;
}
hr {
margin-top: 20px;
margin-bottom: 20px;
border: 0;
border-top: 1px solid #4e4e4e;
}
mark {
background-color: #60ac39;
color: black;
}
pre {
display: block;
padding: 9.5px;
margin: 0 0 10px;
font-size: 13px;
line-height: 1.42857143;
color: #797979;
word-break: break-all;
word-wrap: break-word;
background-color: #4e4e4e;
border: 1px solid #000;
border-radius: 4px;
}
table {
background-color: transparent;
width: 100%;
max-width: 100%;
margin-bottom: 20px;
border-spacing: 0;
border-collapse: collapse;
}
table>caption+thead>tr:first-child>th,
table>colgroup+thead>tr:first-child>th,
table>thead:first-child>tr:first-child>th,
table>caption+thead>tr:first-child>td,
table>colgroup+thead>tr:first-child>td,
table>thead:first-child>tr:first-child>td {
border-top: 0;
}
table>thead>tr>th {
vertical-align: bottom;
border-bottom: 2px solid #4e4e4e;
}
table>thead>tr>th,
table>tbody>tr>th,
table>tfoot>tr>th,
table>thead>tr>td,
table>tbody>tr>td,
table>tfoot>tr>td {
padding: 8px;
line-height: 1.42857143;
vertical-align: top;
border-top: 1px solid #4e4e4e;
}
th {
text-align: left;
}
td,
th {
padding: 0;
}
table>tbody>tr:nth-child(odd)>td,
table>tbody>tr:nth-child(odd)>th {
background-color: #4e4e4e;
}
table>thead>tr>th,
table>tbody>tr>th,
table>tfoot>tr>th,
table>thead>tr>td,
table>tbody>tr>td,
table>tfoot>tr>td {
padding: 8px;
line-height: 1.42857143;
vertical-align: top;
border-top: 1px solid #4e4e4e;
}
td,
th {
padding: 0;
}
img {
max-width: 50%;
max-height: 800px;
}
ul,
ol {
padding: 0;
margin: 0;
}
ul ul,
ol ol {
padding-left: 2em;
}
```
猜猜为什么没有投 技术 版块?[color=#fff]因为这是整活hhh[/color]
[/pay]
效果图
