Chào mừng đến với Diễn đàn lập trình - Cộng đồng lập trình.
Kết quả 1 đến 3 của 3
  1. #1
    Ngày tham gia
    Sep 2015
    Bài viết
    0
    Trích dẫn Gửi bởi themyth_2509
    Mình thấy cái đoạn này
    Mã:
    <div class="content" style="background-color: #008000">
    Có thể bạn nhầm lẫn giữa các phần chăng? Sao "content" mà lại viết trước header vậy bạn?
    Bạn thử xem lại cấu trúc của trang và kiểm tra lại cái màu Green đó nó đang áp dụng ở đâu.
    Khi em sữa cái thẻ <div id=content> height = 1000x thì nó hiện màu lên nhưng các sản phẩm load từ sql sẽ bị load ra ngoài khung...em ko bik sữa chỗ đó

  2. #2
    Ngày tham gia
    Sep 2015
    Bài viết
    0

    Thêm màu cho thẻ div không được

    [IMG][/IMG]

    em muốn màu nền trong khung đỏ của web em là màu green nhưng no không thêm được
    đây là code masterpage của em.
    Mã:
    <%@ Master Language="C#" AutoEventWireup="true" CodeFile="MyMaster.master.cs" Inherits="MyMaster" %>
    
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server"><link href="Styles/StyleSheet.css" rel="StyleSheet" type="text/css" />
        <title></title>
        <asp:ContentPlaceHolder id="head" runat="server">
        </asp:ContentPlaceHolder>
        <style type="text/css">
        html{background-image:url(Images/bggg.jpg);; background-attachment:fixed}
        .content{;border:black 1px solid;width:800px;margin:auto;height:auto}
        
        .leftcolumm{text-align:center;float:left;border:black 1px solid;width:30%;padding:5px;height:auto}
        .rightcolumm{float:left;padding:5px;height:auto;border:black 1px solid;width:67%}
        .banner{float:left;width:800px;height:100px;border:black 1px solid}
        .footer{text-align:center;float:left;width:800px;height:50px;border:black 1px solid}
        .header1{float:left;width:800px;height:20px;border:black 1px solid;text-align:center}
        a:hover{color:Green;text-decoration:none}
        a{color:#999999;text-decoration:none}
            .style2
            {
                width: 168px;
            }
        </style>
    </head>
    <body>
     
       <form id="form1" runat="server">
       <table><tr><td width=10%></td><td width=80%>
        <div style=";>
        <div src ="Images/Banner1.png" width="800px" height="100px" /></div>
        <div href="Default.aspx">Trang Chủ</a>|
        <a href="Introduction.aspx">Giới Thiệu</a>|
        <a href="Feedback.aspx">Liên Lạc</a>|
        <a href="Register.aspx">Đăng Ký</a>|
        <a href="Search.aspx">Tìm Kiếm</a>|
        <asp:LinkButton ID="lnkDN" runat="server" onclick="lnkDN_Click">Đăng Nhập</asp:LinkButton>
                |
                <asp:Label ID="lblUser" runat="server"></asp:Label>
                 <asp:LinkButton ID="lnkUpdate" runat="server" onclick="lnkUpdate_Click">|sửa thông tin</asp:LinkButton>
                </div>
            <div             
                <div id="x" >DANH MỤC</div>       
                <div id="danhmuc" runat="server" align="center"></div>
                
            </div> 
            <div 
                <asp:ContentPlaceHolder id="ContentPlaceHolder2" runat="server"> 
                custom right
                </asp:ContentPlaceHolder>   
            </div> 
            <div ><address>@2013 CompanyName...</address></div>
        </div></td><td width=10%></td>  </tr>  
        </table>
            </form></body>
    </html>
    Mong mod đừng band em.....
    chân thành cám ơn mấy anh đã giúp em

  3. #3
    Ngày tham gia
    Sep 2015
    Bài viết
    0
    Mình thấy cái đoạn này
    Mã:
    <div class="content" style="background-color: #008000">
    Có thể bạn nhầm lẫn giữa các phần chăng? Sao "content" mà lại viết trước header vậy bạn?
    Bạn thử xem lại cấu trúc của trang và kiểm tra lại cái màu Green đó nó đang áp dụng ở đâu.

 

 

Quyền viết bài

  • Bạn Không thể gửi Chủ đề mới
  • Bạn Không thể Gửi trả lời
  • Bạn Không thể Gửi file đính kèm
  • Bạn Không thể Sửa bài viết của mình
  •