MS word html文件不适合页面布局

时间:2015-08-03 23:44:28

标签: html css ms-word

我们正试图直接在我们的网站上显示MS Word文件中包含的信息。

我们目前通过获取MS Word文件并将其保存为.html文件来执行此操作,然后在Dreamweaver中应用css样式表。

问题:虽然居中,但MS Word内容似乎不适合容器/页面,因为它们都具有指定的宽度并且背景具有对比色 - 当MS Word内容粘贴到Dreamweaver文件中时,它似乎占据了整个屏幕。 MS文件是使用适用于Mac的2011版本创建的。

我们要修复的网页是:http://www.crediteducationprogram.org/cfiles/client-demo.htm

请帮助我们并提前致谢!

html代码太长了,不能过去,但这里是CSS:

@charset "UTF-8";
/* CSS Document */

/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
    display: block;
}
body {
    line-height: 1;
}
ol, ul {
    list-style: none;
}
blockquote, q {
    quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
    content: '';
    content: none;
}
table {
    border-collapse: collapse;
    border-spacing: 0;
}

a {
    text-decoration:none;
    color: black;
}

a.hover {
    text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Arial" Gadget, sans-serif;
    font-weight: normal;
    text-transform: uppercase;
    line-height: 100%;
    margin-top: 0;  
}

h1 {
    font-family: "Arial" Gadget, sans-serif;
    font-size:16px;
    font-weight: 100;
    color: white;
}

h2 {
    font-family: "Arial" Gadget, sans-serif;
    font-weight:bold;
    font-size:16px;
    color: black;
}

h3 {
    font-family: "Arial" Gadget, sans-serif;
    font-size:14px;
    color: black;
}
























/*Main CSS*/

html {
background-color: #339;
padding-top: 10px;
padding-bottom: 10px;
}


.noborder {
    border-left-style: none !important;
}

.leftedge {
    border-radius: 8px 0px 0px 8px;
}
.topleft {
    border-radius: 8px 0px 0px 0px;
}
.topright {
    border-radius: 0px 8px 0px 0px;
}
.bottomleft {
    border-radius: 0px 0px 0px 8px;
}
.bottomright {
    border-radius: 0px 0px 8px 0px;
}
.rightedge {
    border-radius: 0px 8px 8px 0px;
}



#container {
                position: relative;
            margin-left: auto;
            margin-right: auto;
            width: 80%;
width: 982.5px;
background: white;
}

#container #maintext {
    padding-left:20px;
    padding-right:20px;
}

#main {
    text-align:left;
}

#main p {
    text-align:left;
        font-size: 16px;
        margin-left: 10px;
        margin-right: 10px;

}

#main a {
    text-align:justify !important;
}

#main p {
    text-align:justify !important;
}


#footer {
    background-color: #36c;
    height: 40px;
    clear: both;
    font-size: small;
    display: block;
    line-height: 40px;
    text-align: left;
    vertical-align: middle;
    padding-left: 10px;
    color: #FFF;
}

#container2 {
                position: relative;
            margin-left: auto;
            margin-right: auto;
            width: 80%;
width: 982.5px;
}



#footer2 {
    background-color: #609;
width: 982.5px;
    height: 30px;
    display: block;
    text-align: center;
    color: #FFF;
    font-size: small;
    padding-top: 10px;
}

#footer2 ul {
    text-align: left;
         height: auto;
    float: left;
}


#footer2 ul li {
    list-style: none;
    padding: 5px;
    margin-right: 30px;
}

#footer2 ul li a {
    text-decoration: none;
    color: #FFF;
    padding: 0px 8px 8px 8px;
}

#footer2 ul li a:hover {
    text-decoration: underline;
}


#container #footer3 {
    font-size:  small;
    color: #666;
}

0 个答案:

没有答案